/*
 * XML Type:  StateTaxWithheldAggregate
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StateTaxWithheldAggregate
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StateTaxWithheldAggregate(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StateTaxWithheldAggregateImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.StateTaxWithheldAggregate
{
    
    public StateTaxWithheldAggregateImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName AMOUNT$0 = 
        new javax.xml.namespace.QName("", "AMOUNT");
    private static final javax.xml.namespace.QName PAYERSTATE$2 = 
        new javax.xml.namespace.QName("", "PAYERSTATE");
    private static final javax.xml.namespace.QName PAYERSTID$4 = 
        new javax.xml.namespace.QName("", "PAYERSTID");
    private static final javax.xml.namespace.QName STDIST$6 = 
        new javax.xml.namespace.QName("", "STDIST");
    
    
    /**
     * Gets the "AMOUNT" element
     */
    public java.lang.String getAMOUNT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AMOUNT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "AMOUNT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetAMOUNT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(AMOUNT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AMOUNT" element
     */
    public void setAMOUNT(java.lang.String amount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AMOUNT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AMOUNT$0);
            }
            target.setStringValue(amount);
        }
    }
    
    /**
     * Sets (as xml) the "AMOUNT" element
     */
    public void xsetAMOUNT(net.ofx.types.x2003.x04.AmountType amount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(AMOUNT$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(AMOUNT$0);
            }
            target.set(amount);
        }
    }
    
    /**
     * Gets the "PAYERSTATE" element
     */
    public java.lang.String getPAYERSTATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYERSTATE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PAYERSTATE" element
     */
    public net.ofx.types.x2003.x04.StateCodeType xgetPAYERSTATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StateCodeType target = null;
            target = (net.ofx.types.x2003.x04.StateCodeType)get_store().find_element_user(PAYERSTATE$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "PAYERSTATE" element
     */
    public void setPAYERSTATE(java.lang.String payerstate)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYERSTATE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYERSTATE$2);
            }
            target.setStringValue(payerstate);
        }
    }
    
    /**
     * Sets (as xml) the "PAYERSTATE" element
     */
    public void xsetPAYERSTATE(net.ofx.types.x2003.x04.StateCodeType payerstate)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StateCodeType target = null;
            target = (net.ofx.types.x2003.x04.StateCodeType)get_store().find_element_user(PAYERSTATE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.StateCodeType)get_store().add_element_user(PAYERSTATE$2);
            }
            target.set(payerstate);
        }
    }
    
    /**
     * Gets the "PAYERSTID" element
     */
    public java.lang.String getPAYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYERSTID$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PAYERSTID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetPAYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(PAYERSTID$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "PAYERSTID" element
     */
    public boolean isSetPAYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYERSTID$4) != 0;
        }
    }
    
    /**
     * Sets the "PAYERSTID" element
     */
    public void setPAYERSTID(java.lang.String payerstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYERSTID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYERSTID$4);
            }
            target.setStringValue(payerstid);
        }
    }
    
    /**
     * Sets (as xml) the "PAYERSTID" element
     */
    public void xsetPAYERSTID(net.ofx.types.x2003.x04.IdType payerstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(PAYERSTID$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(PAYERSTID$4);
            }
            target.set(payerstid);
        }
    }
    
    /**
     * Unsets the "PAYERSTID" element
     */
    public void unsetPAYERSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYERSTID$4, 0);
        }
    }
    
    /**
     * Gets the "STDIST" element
     */
    public java.lang.String getSTDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STDIST$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STDIST" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetSTDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STDIST$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "STDIST" element
     */
    public boolean isSetSTDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STDIST$6) != 0;
        }
    }
    
    /**
     * Sets the "STDIST" element
     */
    public void setSTDIST(java.lang.String stdist)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STDIST$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STDIST$6);
            }
            target.setStringValue(stdist);
        }
    }
    
    /**
     * Sets (as xml) the "STDIST" element
     */
    public void xsetSTDIST(net.ofx.types.x2003.x04.AmountType stdist)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(STDIST$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(STDIST$6);
            }
            target.set(stdist);
        }
    }
    
    /**
     * Unsets the "STDIST" element
     */
    public void unsetSTDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STDIST$6, 0);
        }
    }
}
